package com.vcms.cms.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * ContentTxt entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "content_txt", catalog = "vcms_0.1")
public class ContentTxt implements java.io.Serializable {

	// Fields

	private Integer contentTxtId;
	private Content content;
	private String txt;
	private String txt1;
	private String txt2;
	private String txt3;

	// Constructors

	/** default constructor */
	public ContentTxt() {
	}

	/** full constructor */
	public ContentTxt(Content content, String txt, String txt1, String txt2,
			String txt3) {
		this.content = content;
		this.txt = txt;
		this.txt1 = txt1;
		this.txt2 = txt2;
		this.txt3 = txt3;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "contentTxtId", unique = true, nullable = false)
	public Integer getContentTxtId() {
		return this.contentTxtId;
	}

	public void setContentTxtId(Integer contentTxtId) {
		this.contentTxtId = contentTxtId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "contentId")
	public Content getContent() {
		return this.content;
	}

	public void setContent(Content content) {
		this.content = content;
	}

	@Column(name = "txt")
	public String getTxt() {
		return this.txt;
	}

	public void setTxt(String txt) {
		this.txt = txt;
	}

	@Column(name = "txt1")
	public String getTxt1() {
		return this.txt1;
	}

	public void setTxt1(String txt1) {
		this.txt1 = txt1;
	}

	@Column(name = "txt2")
	public String getTxt2() {
		return this.txt2;
	}

	public void setTxt2(String txt2) {
		this.txt2 = txt2;
	}

	@Column(name = "txt3")
	public String getTxt3() {
		return this.txt3;
	}

	public void setTxt3(String txt3) {
		this.txt3 = txt3;
	}

}